package com.yisu.auction.manager.website.factoryClassPackage.excelFactory.impl;

import com.yisu.auction.manager.website.factoryClassPackage.excelFactory.DateTypeEnum;
import com.yisu.auction.manager.website.factoryClassPackage.excelFactory.IExcelFactoryService;
import com.yisu.auction.manager.website.factoryClassPackage.excelFactory.IExportService;

/**
 * author: 赵杰
 * Business Description：
 * createTime：2017/9/27
 */
public class ExcelFactoryServiceImpl implements IExcelFactoryService{
    /**
     * 导出业务工厂接口
     *
     * @param dateTypeEnum 数据类型枚举
     * @return
     */
    @Override
    public IExportService factory(DateTypeEnum dateTypeEnum) {
        switch (dateTypeEnum)
        {
            case MEMBER_DATE:
                return new memberDataExportImpl();
            default:
                throw new RuntimeException("未检测到相应的加密角色！");
        }
    }
}
